#include "lcd12864.c"
/**
 * 在屏幕指定位置显示一个数字
 * @param num 0~9 任意数字
 */
void display_num(
    unsigned char page,
    unsigned char col,
    unsigned char num)
{
    lcd_display_bytes_in_page(page, col, &NUM_CHARS[num * 4], 4);
}
void display_speed_select_screen()
{
    // 显示上下两个黑条
    lcd_display_same_bytes_in_page(0, 0, 0xFF, 128);
    lcd_display_same_bytes_in_page(7, 0, 0xFF, 128);

    // page 3 ，52列，写SPEED
    lcd_display_bytes_in_page(3, 52, SPEED_CHARS, sizeof(SPEED_CHARS));

    // page 4, 写箭头
    lcd_display_bytes_in_page(4, 57, LEFT_ARROW, sizeof(LEFT_ARROW));
    lcd_display_bytes_in_page(4, 67, RIGHT_ARROW, sizeof(RIGHT_ARROW));
}

void display_speed_select_num(unsigned char num)
{
    display_num(4, 62, num);
}

void display_init()
{
    lcd_init();
    lcd_clean_screen();
}